php number_format

183

laravel number add 0 before -

<?php
$num = 4;
$num_padded = sprintf("%02d", $num);
echo $num_padded; // returns 04
?>

php number formatter -

echo number_format(123456, 1, ",", " ");

Comments

Submit
0 Comments